package com.rgs.module.file.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Ren Gaoshuai
 * @ClassName FileInfoDO
 * @date 2022-01-26 8:45
 **/
@Data
@ApiModel(description = "文件列表")
@Table(name = "file_info")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class FileInfoDO implements Serializable {
    private static final long serialVersionUID = 612250232596862140L;
    /**
     * 文件uuid名称
     */
    @Id
    @ApiModelProperty(value = "文件uuid名称")
    private String fileName;
    /**
     * 文件大小，字节
     */
    @ApiModelProperty(value = "文件大小，字节")
    private Long size;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     * 状态，0：待删除；1：不删除
     */
    @ApiModelProperty(value = "状态，0：待删除；1：不删除；2：上传中")
    private Integer status;
    /**
     * crc32
     */
    @ApiModelProperty(value = "crc32")
    private Long crc32;


}

